home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / C / LIB / DESK / CORE / Desk / h / WAssert < prev    next >
Text File  |  1996-05-21  |  428b  |  21 lines

  1.  
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. #ifndef __Desk_WAssert_h
  6. #define __Desk_WAssert_h
  7. extern void Desk_WAssert__wassert(char *);
  8. #else
  9. # undef assert
  10. #endif
  11. #ifndef _DEBUG
  12. # define assert(ignore) ((void)0)
  13. #else
  14. # define __SR(x) __VL(x)
  15. # define __VL(x) #x
  16. # define assert(e) ((e) ? (void)0 : Desk_WAssert__wassert("Assertion " #e " failed at line " __SR(__LINE__) " of file " __FILE__))
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif
  21.